const request = require("./request.js")
const MS = require('./ms')
const {
    isString,
    isNumber
} = require('./dataType')

const banner = class banner {

    query() {
        let data = {}
        return new Promise((resolve, reject) => {
            request(MS._config.parameters.BANNER.FIND_BANNER.url,
                MS._config.parameters.BANNER.FIND_BANNER.method,
                data).then(res => {
                resolve(res.data)
            }).catch(err => {
                reject(err)
            })
        })
    }
}

module.exports = banner
